package mapper;


import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import pojo.User;

public interface UserMapper {
      @Select("select * from t_user where username = #{username}")
      User selectByUsername(String username);
      @Insert("insert into t_user values(null,#{username},#{password})")
      int add(User user);

}


